<%@include file="/libs/foundation/global.jsp"%>
<%@page import="com.day.cq.wcm.foundation.Image"%>

<%

Image image = new Image(resource, "image");
image.setSelector(".img");

String text = properties.get("text","This is the default text");

%>

<%=text%> <br />
<%image.draw(out);%>